<template>
  <div>
    <div class="timeAddressBox">
      <div class="container">
        <div class="con-left">
          <div class="dec-time">
            {{arr.showTimeRange}}
          </div>
          <div class="dec-address">
            {{arr.address}}
          </div>
        </div>
        <div class="add-icon">
          <i class="iconfont icon-weizhi_2"></i>
        </div>
      </div>
      <div class="tickets">
        <ul class="ticketsMothods">
          <li>
            <i class="iconfont icon-vips"></i>
            <span>官方票</span>
          </li>
          <li>
            <i class="iconfont icon-dingdan"></i>
            <span>电子票</span>
          </li>
        </ul>
      </div>
      <div class="watch">
        <ul class="like">
          <li>
            <i class="iconfont icon-xihuan"></i>
            <span>想看</span>
          </li>
          <li>
            <i class="iconfont icon-xihuan"></i>
            <span>看过</span>
          </li>
        </ul>
      </div>
    </div>
    <div class="prevshow">
      <div class="showDecTitle">演出详情</div>
      <img :src="arr.posterUrl">
    </div>
  </div>
</template>
<script>
import getLink from '@/api/getLink.js'
export default {
  data() {
    return {
      arr: {}
    }
  },
  mounted() {
    getLink('/show/today').then(res => {
      this.arr = res.data.find(v => v.categoryId == this.$route.query.todaysale)
    })
  }
}
</script>
<style scoped>
.timeAddressBox {
  background-image: linear-gradient(to right, #2a294a, #44435f, #2a294a);
}
.container {
  width: 90%;
  margin: auto;
  height: 1.2rem;
  border-radius: 0.2rem;
  overflow: hidden;
  background-color: rgba(32, 32, 61, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.con-left {
  text-indent: 0.2rem;
  color: #ffffff;
  width: 5rem;
  /* background-color: aqua; */
  font-size: 0.3rem;
}
.add-icon {
  width: 0.8rem;
  height: 0.8rem;
  /* background-color: aqua; */
  font-size: 0.6rem;
  text-align: center;
  color: #ffffff;
}
.tickets {
  width: 90%;
  margin: auto;
  overflow: hidden;
}
.tickets .ticketsMothods li {
  float: left;
  height: 0.7rem;
  line-height: 0.7rem;
  font-size: 0.26rem;
  margin-right: 0.5rem;
  color: #8b7b79;
}
.watch {
  width: 90%;
  height: 1rem;
  margin: auto;
  /* background-color: #ffffff; */
}
.watch .like {
  display: flex;
  justify-content: space-between;
}
.watch .like li {
  border-radius: 0.1rem;
  width: 3.2rem;
  height: 0.7rem;
  line-height: 0.8rem;
  background-color: #3a3a5c;
  font-size: 0.32rem;
  color: #ffffff;
  text-align: center;
}
.prevshow {
  width: 90%;
  margin: auto;
}
.showDecTitle {
  font-size: 0.44rem;
  font-weight: bold;
  margin: 0.2rem auto;
}
.prevshow img {
  width: 100%;
}
</style>